package com.tro.mail.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.tro.mail.dao.entity.MailInbox;
import com.tro.mail.dao.entity.MailInboxExample;
import com.tro.mail.vo.InBoxVO;
import com.tro.mail.vo.InBoxVOSearch;

public interface MailInboxMapper {
    int countByExample(MailInboxExample example);

    int deleteByExample(MailInboxExample example);

    int deleteByPrimaryKey(Long id);

    int insert(MailInbox record);

    int insertSelective(MailInbox record);

    List<MailInbox> selectByExample(MailInboxExample example);

    MailInbox selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") MailInbox record, @Param("example") MailInboxExample example);

    int updateByExample(@Param("record") MailInbox record, @Param("example") MailInboxExample example);

    int updateByPrimaryKeySelective(MailInbox record);

    int updateByPrimaryKey(MailInbox record);
    
    List<InBoxVO> selectInBoxList(InBoxVOSearch search);
    
    List<InBoxVO> selectForderMailList(InBoxVOSearch search);
    int selectForderMailCount(InBoxVOSearch search);
}